CREATE TABLE [dbo].[tb_RelRolCausasAlta]
(
[IdRol] [int] NOT NULL,
[IdCausaAlta] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_RelRolCausasAlta] WITH NOCHECK ADD CONSTRAINT [FK_tb_RelRolCausasAlta_tb_CausasAltas] FOREIGN KEY ([IdCausaAlta]) REFERENCES [dbo].[tb_CausasAltas] ([idCausaAlta])
GO
ALTER TABLE [dbo].[tb_RelRolCausasAlta] WITH NOCHECK ADD CONSTRAINT [FK_tb_RelRolCausasAlta_tb_Roles] FOREIGN KEY ([IdRol]) REFERENCES [dbo].[tb_Roles] ([idRol])
GO
GRANT SELECT ON  [dbo].[tb_RelRolCausasAlta] TO [GestionInstitucional]
GRANT SELECT ON  [dbo].[tb_RelRolCausasAlta] TO [Informatica]
GRANT SELECT ON  [dbo].[tb_RelRolCausasAlta] TO [PersonalDocente]
GRANT SELECT ON  [dbo].[tb_RelRolCausasAlta] TO [PersonalDocenteDireccion]
GRANT SELECT ON  [dbo].[tb_RelRolCausasAlta] TO [pregase]
GO
